/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package generics;

/**
 *
 * @author anh_yeu_em_nhieu_lam
 */
public class GenericsInterfaceBasic {
    interface InterfaceGeneric<T>{
        public T Inramanhinh();
    }
    class TestOne implements InterfaceGeneric<String>{
        public String Inramanhinh() {
            return "This is String ^^!\n";
        }  
    }
    class TestTwo implements InterfaceGeneric<Integer>{
        public Integer Inramanhinh() {
            return 100;
        }    
    }
    public static void main(String[] args){
        System.out.print(new GenericsInterfaceBasic().new TestOne().Inramanhinh());
        System.out.print(new GenericsInterfaceBasic().new TestTwo().Inramanhinh());
    }
}
/*
This is String ^^!
100
 * */